import { createRouter, createWebHistory } from "vue-router";
import HomeView from "../views/HomeView.vue";

const routes = [
  {
    path: "/",
    name: "home",
    component: HomeView,
  },
  {
    path: "/about",
    name: "about",
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/AboutView.vue"),
  },
  {
    path: "/shallowref",
    name: "shallowref",
    component: () =>
      import(
        /* webpackChunkName: "shallowref" */ "../views/ShallowRefView.vue"
      ),
  },
  {
    path: "/shallowreactive",
    name: "shallowreactive",
    component: () =>
      import(
        /* webpackChunkName: "shallowreactive" */ "../views/ShallowReactiveView.vue"
      ),
  },
  {
    path: "/case",
    name: "case",
    component: () =>
      import(/* webpackChunkName: "case" */ "../views/CaseShallow.vue"),
  },
  {
    path: "/trigger",
    name: "trigger",
    component: () =>
      import(/* webpackChunkName: "trigger" */ "../views/TriggerRefView.vue"),
  },
  {
    path: "/customref",
    name: "customref",
    component: () =>
      import(/* webpackChunkName: "customref" */ "../views/CustomRefView.vue"),
  },
  {
    path: "/provide",
    name: "provide",
    component: () =>
      import(/* webpackChunkName: "provide" */ "../views/ProvideInject.vue"),
  },
  {
    path: "/setup",
    name: "setup",
    component: () =>
      import(/* webpackChunkName: "setup" */ "../views/SetupView.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
